<?php
declare (strict_types = 1);
namespace app\common\model\user;

use think\model\Pivot;

/**
 * @mixin think\Model
 */
class RolePermission extends Pivot
{
    // 设置字段信息
    protected $schema = [
        'permission_id'        => 'int',
        'role_id'              => 'int',
    ];

    // 类型转换
    protected $type = [
        'permission_id'        => 'integer',
        'role_id'              => 'integer',
    ];
}
